|
|
|
|
- Deleted messages (IMAP protocol)
<emailIMAPSession variable>.NbMessage (Function) In french: <Variable emailSessionIMAP>.NbMessage Returns the number of incoming messages on the email server (IMAP protocol). This number of messages evolves according to the incoming emails or to the emails actually deleted from the email server (via an "expunge" commande, clear the bin from a WebMail for example). You also have the ability to force the destruction of all deleted emails via <emailIMAPSession variable>.Expunge. MySession is emailIMAPSession  nbMSG is int = MySession.NbMessage() FOR I = 1 TO nbMSG EmailReadMessage(MySession, I) IF Email.Out <> True THEN CU.NAME = Email.Sender CU.MESSAGE_TXT = Email.Message ... ELSE Info("This message was deleted") END END
Syntax
<Result> = <IMAP session>.NbMessage()
<Result>: Integer - Number of messages received on the server in the current email session,
- -1 if an error occurred. To get more details on the error, use ErrorInfo.
<IMAP session>: emailIMAPSession variable Name of the emailIMAPSession variable corresponding to the email session to use. Remarks Deleted messages (IMAP protocol) If a message was deleted by EmailDeleteMessage, this message is actually deleted from the session:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|